package com.snoopy.gas1.entity;

import java.util.Date;

/**
 * 员工注册信息实体类
 */
public class Register {
    private Integer id;                 // 注册表主键
    private Integer employeeId;        // 关联employee_info表的员工id
    private String employeeName;      // 员工姓名
    private String position;          // 职位
    private Date hireDate;            // 入职日期
    private String password;          // 密码
    private String confirmPassword;   // 确认密码
    private String gender;            // 性别（男/女）

    // 无参构造器
    public Register() {
    }

    // 全参构造器
    public Register(Integer id, Integer employeeId, String employeeName, String position,
                    Date hireDate, String password, String confirmPassword, String gender) {
        this.id = id;
        this.employeeId = employeeId;
        this.employeeName = employeeName;
        this.position = position;
        this.hireDate = hireDate;
        this.password = password;
        this.confirmPassword = confirmPassword;
        this.gender = gender;
    }

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Register{" +
                "id=" + id +
                ", employeeId=" + employeeId +
                ", employeeName='" + employeeName + '\'' +
                ", position='" + position + '\'' +
                ", hireDate=" + hireDate +
                ", password='" + password + '\'' +
                ", confirmPassword='" + confirmPassword + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }
}